GraphResponseConverter

open class GraphResponseConverter<T>(type: Type?, gson: <Error class: unknown class>)

GraphQL response body converter to unwrap nested object results, resulting in a smaller generic tree for requests

Constructors

Link copied to clipboard
constructor(type: Type?, gson: <Error class: unknown class>)

Functions

Link copied to clipboard
open fun convert(responseBody: <Error class: unknown class>): T?

Converter contains logic on how to handle responses, since GraphQL responses follow the JsonAPI spec it makes sense to wrap our base query response data and errors response in here, the logic remains open to the implementation